package nl.depository.pim.entities;

import java.net.MalformedURLException;
import java.net.URL;

import javax.persistence.Id;

public class Website
{
	@Id
	private String id;
	
	private String name;
	
	private URL url;
	
	public String getId()
	{
		return id;
	}
	
	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public URL getUrl()
	{
		return url;
	}
	
	public void setUrl(String url) throws MalformedURLException
	{
		this.url = new URL(url);
	}
	
	public void setUrl(URL url)
	{
		this.url = url;
	}
}
